
<html xmlns="http://www.w3.org/1999/xhtml">
<head><script type="text/javascript" src="../resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery.js"></script>
<script type="text/javascript" src="../resource/org.wicketstuff.datetime.extensions.yui.YuiLib/yuiloader/yuiloader.js"></script>

<title>Wicket Examples - dates</title>
<link rel="stylesheet" type="text/css" href="../../style.css"/>
<style type="text/css">
/*<![CDATA[*/

th {
	color: grey;
}

/*]]>*/
</style>
<script type="text/javascript">
/*<![CDATA[*/
Wicket.Event.add(window, "domready", function(event) { 
Wicket.Event.add('localeSelect2', 'change', function(event) { if (event.target.name !== 'localeSelect') return; var f = document.getElementById('localeForm1');f.action='./org.wicketstuff.datetime.extensions.yui.calendar.DatesPage1?0-1.0-localeForm-localeSelect';Wicket.Event.fire(f, 'submit');;});;
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
if (typeof(Wicket) === 'undefined') {
	window.Wicket = {};
}
if (typeof(Wicket.DateTimeInit) === 'undefined') {
	Wicket.DateTimeInit = {};
}

Wicket.DateTimeInit.CalendarInits = [];
Wicket.DateTimeInit.CalendarInitFinished = false;
Wicket.DateTimeInit.CalendarI18n = {};
Wicket.DateTimeInit.CalendarAdd = function(initFn) {
	if (Wicket.DateTimeInit.CalendarInitFinished) {
		// when a DatePicker is added via ajax, the loader is already finished, so
		// we call the init function directly.
		initFn();
	} else {
		// when page is rendered, all calendar components will be initialized after
		// the required js libraries have been loaded.
		Wicket.DateTimeInit.CalendarInits.push(initFn);
	}
};

Wicket.DateTimeInit.YuiLoader = new YAHOO.util.YUILoader({
	base: "../resource/org.wicketstuff.datetime.extensions.yui.YuiLib/",
	filter: "RAW",
	allowRollup: false,
	require: ["wicket-date"],
	onSuccess: function() {
		Wicket.DateTimeInit.CalendarInitFinished = true;
		while (Wicket.DateTimeInit.CalendarInits.length > 0) {
			Wicket.DateTimeInit.CalendarInits.pop()();
		}
	}
});
Wicket.DateTimeInit.YuiLoader.addModule({
	name: "wicket-date",
	type: "js",
	requires: ["calendar"],
	fullpath: "../resource/org.wicketstuff.datetime.extensions.yui.calendar.DatePicker/wicket-date.js"
});
Wicket.DateTimeInit.YuiLoader.insert();
;
Wicket.DateTimeInit.CalendarI18n["it"]={MONTHS_SHORT:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],MONTHS_LONG:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],WEEKDAYS_MEDIUM:["dom","lun","mar","mer","gio","ven","sab"],WEEKDAYS_LONG:["domenica","luned\u00EC","marted\u00EC","mercoled\u00EC","gioved\u00EC","venerd\u00EC","sabato"],START_WEEKDAY:1,WEEKDAYS_1CHAR:["d","l","m","m","g","v","s"],WEEKDAYS_SHORT:["do","lu","ma","me","gi","ve","sa"]};;
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
Wicket.DateTimeInit.CalendarAdd(function() {
	Wicket.DateTime.init2("dateTextField3", "dateTextField3", {close:true,selected:"xx/xx/xxxx",pagedate:"xx/xxxx"}, "dd/MM/yy",
			true, true, true, false, Wicket.DateTimeInit.CalendarI18n["it"], false, "");
	
});
;
Wicket.Event.publish(Wicket.Event.Topic.AJAX_HANDLERS_BOUND);
;});
/*]]>*/
</script>
</head>
<body>
<form wicket:id="localeForm" id="localeForm1" method="post" action="./org.wicketstuff.datetime.extensions.yui.calendar.DatesPage1?0-1.-localeForm">
<p><select wicket:id="localeSelect" name="localeSelect" id="localeSelect2">
<option value="0">cinese (Cina) (Chinese (China))</option>
<option value="1">cinese (Cina) (Chinese (China))</option>
<option value="2">cinese (Cina) (Chinese (China))</option>
<option value="3">cinese (Taiwan) (Chinese (Taiwan))</option>
<option value="4">cinese (Taiwan) (Chinese (Taiwan))</option>
<option value="5">coreano (Korean)</option>
<option value="6">coreano (Corea del Sud) (Korean (South Korea))</option>
<option value="7">francese (French)</option>
<option value="8">francese (Canada) (French (Canada))</option>
<option value="9">francese (Francia) (French (France))</option>
<option value="10">giapponese (Japanese)</option>
<option value="11">giapponese (Giappone) (Japanese (Japan))</option>
<option value="12">inglese (English)</option>
<option value="13">inglese (Canada) (English (Canada))</option>
<option value="14">inglese (Regno Unito) (English (United Kingdom))</option>
<option value="15">inglese (Stati Uniti) (English (United States))</option>
<option selected="selected" value="16">italiano (Italian)</option>
<option value="17">italiano (Italia) (Italian (Italy))</option>
<option value="18">tedesco (German)</option>
<option value="19">tedesco (Germania) (German (Germany))</option>
</select> [<a href="./org.wicketstuff.datetime.extensions.yui.calendar.DatesPage1?0-1.-localeForm-localeUSLink" wicket:id="localeUSLink">set to english</a>]</p>
</form>
<p>
<form wicket:id="form" id="form4" method="post" action="./org.wicketstuff.datetime.extensions.yui.calendar.DatesPage1?0-1.-form"><input type="text" wicket:id="dateTextField" value="xx/xx/xx" name="dateTextField" id="dateTextField3"/>
<span class="yui-skin-sam">&nbsp;<span style="display:none;position:absolute;z-index: 99999;" id="dateTextField3Dp"></span><img style="cursor: pointer; border: none;" id="dateTextField3Icon" src="../resource/org.wicketstuff.datetime.extensions.yui.calendar.DatePicker/icon1.gif" alt="" title=""/></span> <input type="submit" value="submit" /></form>
</p>
<p>
	<div wicket:id="feedback"><wicket:panel>
  
</wicket:panel></div>
</p>
</body>
</html>
